package com.scujj.cs6.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Schema(name = "FollowQuestionVo", description = "关注的用户问题视图对象")
@Data
public class FollowQuestionVo implements Serializable {

    @Schema(description = "问题ID", example = "1")
    private Long id;

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "用户名", example = "张三")
    private String username;

    @Schema(description = "头像", example = "http://www.baidu.com/1.jpg")
    private String avatar;

    @Schema(description = "问题标题", example = "如何学习 Java")
    private String title;

    @Schema(description = "问题内容", example = "我想学习 Java，应该怎么学")
    private String content;

    @Schema(description = "创建时间", example = "2021-01-01 00:00:00")
    private Date createTime;

    @Schema(description = "更新时间", example = "2021-01-01 00:00:00")
    private Date updateTime;

    @Schema(description = "标签", example = "[\"java\",\"spring\"]")
    private List<String> tags;

    @Schema(description = "主题", example = "后端")
    private String topic;
}